#include "red_black_tree.h"
#include "stdio.h"

int main()
{
	int i = 0;
	rb_tree *tree = init_rb_tree();
	for (i = 0;i<100;i++)
	{
		rb_insert(tree,i);
	}
	rb_delete(tree,2);
	rb_delete(tree,25);
	rb_delete(tree,52);
	rb_delete(tree,200);
	printf("inorder:");
	rb_inorder(tree);
	printf("preorder:");
	rb_preorder(tree);
	if (!check(tree))
	{
		printf("error\n");
	}
	else
	{
		printf("ok\n");
	}
}